Optimal. Leaf size=588 \[ -\frac{(d+e x) \sqrt [4]{c f^2-g (b f-a g)} \sqrt{\frac{\left (a+b x+c x^2\right ) (e f-d g)^2}{(d+e x)^2 \left (a g^2-b f g+c f^2\right )}} \left (\frac{(f+g x) \sqrt{a e^2-b d e+c d^2}}{(d+e x) \sqrt{c f^2-g (b f-a g)}}+1\right ) \sqrt{\frac{\frac{(f+g x)^2 \left (a e^2-b d e+c d^2\right )}{(d+e x)^2 \left (c f^2-g (b f-a g)\right )}-\frac{(f+g x) (2 a e g-b (d g+e f)+2 c d f)}{(d+e x) \left (a g^2-b f g+c f^2\right )}+1}{\left (\frac{(f+g x) \sqrt{a e^2-b d e+c d^2}}{(d+e x) \sqrt{c f^2-g (b f-a g)}}+1\right )^2}} \text{EllipticF}\left (2 \tan ^{-1}\left (\frac{\sqrt{f+g x} \sqrt [4]{a e^2-b d e+c d^2}}{\sqrt{d+e x} \sqrt [4]{a g^2-b f g+c f^2}}\right ),\frac{1}{4} \left (\frac{2 a e g-b (d g+e f)+2 c d f}{\sqrt{c d^2-e (b d-a e)} \sqrt{c f^2-g (b f-a g)}}+2\right )\right )}{\sqrt{a+b x+c x^2} (e f-d g) \sqrt [4]{a e^2-b d e+c d^2} \sqrt{\frac{(f+g x)^2 \left (a e^2-b d e+c d^2\right )}{(d+e x)^2 \left (c f^2-g (b f-a g)\right )}-\frac{(f+g x) (2 a e g-b (d g+e f)+2 c d f)}{(d+e x) \left (a g^2-b f g+c f^2\right )}+1}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 1.16692, antiderivative size = 588, normalized size of antiderivative = 1., number of steps used = 2, number of rules used = 2, integrand size = 33, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.061, Rules used = {935, 1103} \[ -\frac{(d+e x) \sqrt [4]{c f^2-g (b f-a g)} \sqrt{\frac{\left (a+b x+c x^2\right ) (e f-d g)^2}{(d+e x)^2 \left (a g^2-b f g+c f^2\right )}} \left (\frac{(f+g x) \sqrt{a e^2-b d e+c d^2}}{(d+e x) \sqrt{c f^2-g (b f-a g)}}+1\right ) \sqrt{\frac{\frac{(f+g x)^2 \left (a e^2-b d e+c d^2\right )}{(d+e x)^2 \left (c f^2-g (b f-a g)\right )}-\frac{(f+g x) (2 a e g-b (d g+e f)+2 c d f)}{(d+e x) \left (a g^2-b f g+c f^2\right )}+1}{\left (\frac{(f+g x) \sqrt{a e^2-b d e+c d^2}}{(d+e x) \sqrt{c f^2-g (b f-a g)}}+1\right )^2}} F\left (2 \tan ^{-1}\left (\frac{\sqrt [4]{c d^2-b e d+a e^2} \sqrt{f+g x}}{\sqrt [4]{c f^2-b g f+a g^2} \sqrt{d+e x}}\right )|\frac{1}{4} \left (\frac{2 c d f+2 a e g-b (e f+d g)}{\sqrt{c d^2-e (b d-a e)} \sqrt{c f^2-g (b f-a g)}}+2\right )\right )}{\sqrt{a+b x+c x^2} (e f-d g) \sqrt [4]{a e^2-b d e+c d^2} \sqrt{\frac{(f+g x)^2 \left (a e^2-b d e+c d^2\right )}{(d+e x)^2 \left (c f^2-g (b f-a g)\right )}-\frac{(f+g x) (2 a e g-b (d g+e f)+2 c d f)}{(d+e x) \left (a g^2-b f g+c f^2\right )}+1}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 935
Rule 1103
Rubi steps
\begin{align*} \int \frac{1}{\sqrt{d+e x} \sqrt{f+g x} \sqrt{a+b x+c x^2}} \, dx &=-\frac{\left (2 (d+e x) \sqrt{\frac{(e f-d g)^2 \left (a+b x+c x^2\right )}{\left (c f^2-b f g+a g^2\right ) (d+e x)^2}}\right ) \operatorname{Subst}\left (\int \frac{1}{\sqrt{1-\frac{(2 c d f-b e f-b d g+2 a e g) x^2}{c f^2-b f g+a g^2}+\frac{\left (c d^2-b d e+a e^2\right ) x^4}{c f^2-b f g+a g^2}}} \, dx,x,\frac{\sqrt{f+g x}}{\sqrt{d+e x}}\right )}{(e f-d g) \sqrt{a+b x+c x^2}}\\ &=-\frac{\sqrt [4]{c f^2-g (b f-a g)} (d+e x) \sqrt{\frac{(e f-d g)^2 \left (a+b x+c x^2\right )}{\left (c f^2-b f g+a g^2\right ) (d+e x)^2}} \left (1+\frac{\sqrt{c d^2-b d e+a e^2} (f+g x)}{\sqrt{c f^2-g (b f-a g)} (d+e x)}\right ) \sqrt{\frac{1-\frac{(2 c d f+2 a e g-b (e f+d g)) (f+g x)}{\left (c f^2-b f g+a g^2\right ) (d+e x)}+\frac{\left (c d^2-b d e+a e^2\right ) (f+g x)^2}{\left (c f^2-g (b f-a g)\right ) (d+e x)^2}}{\left (1+\frac{\sqrt{c d^2-b d e+a e^2} (f+g x)}{\sqrt{c f^2-g (b f-a g)} (d+e x)}\right )^2}} F\left (2 \tan ^{-1}\left (\frac{\sqrt [4]{c d^2-b d e+a e^2} \sqrt{f+g x}}{\sqrt [4]{c f^2-b f g+a g^2} \sqrt{d+e x}}\right )|\frac{1}{4} \left (2+\frac{2 c d f+2 a e g-b (e f+d g)}{\sqrt{c d^2-e (b d-a e)} \sqrt{c f^2-g (b f-a g)}}\right )\right )}{\sqrt [4]{c d^2-b d e+a e^2} (e f-d g) \sqrt{a+b x+c x^2} \sqrt{1-\frac{(2 c d f+2 a e g-b (e f+d g)) (f+g x)}{\left (c f^2-b f g+a g^2\right ) (d+e x)}+\frac{\left (c d^2-b d e+a e^2\right ) (f+g x)^2}{\left (c f^2-g (b f-a g)\right ) (d+e x)^2}}}\\ \end{align*}
Mathematica [A] time = 3.51726, size = 375, normalized size = 0.64 \[ \frac{2 \sqrt{2} e \sqrt{a+x (b+c x)} \sqrt{-\frac{e (f+g x) \left (e (a e-b d)+c d^2\right )}{(d+e x) \left (-d g \sqrt{e^2 \left (b^2-4 a c\right )}+e f \sqrt{e^2 \left (b^2-4 a c\right )}-2 a e^2 g+b e (d g+e f)-2 c d e f\right )}} \text{EllipticF}\left (\sin ^{-1}\left (\frac{\sqrt{\frac{(d+e x) \sqrt{e^2 \left (b^2-4 a c\right )}+2 a e^2+b e (e x-d)-2 c d e x}{(d+e x) \sqrt{e^2 \left (b^2-4 a c\right )}}}}{\sqrt{2}}\right ),\frac{2 \sqrt{e^2 \left (b^2-4 a c\right )} (e f-d g)}{-d g \sqrt{e^2 \left (b^2-4 a c\right )}+e f \sqrt{e^2 \left (b^2-4 a c\right )}-2 a e^2 g+b e (d g+e f)-2 c d e f}\right )}{\sqrt{d+e x} \sqrt{f+g x} \sqrt{e^2 \left (b^2-4 a c\right )} \sqrt{-\frac{(a+x (b+c x)) \left (e (a e-b d)+c d^2\right )}{\left (b^2-4 a c\right ) (d+e x)^2}}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.471, size = 605, normalized size = 1. \begin{align*} 4\,{\frac{ \left ( \sqrt{-4\,ac+{b}^{2}}{x}^{2}{e}^{2}g+b{e}^{2}g{x}^{2}-2\,c{e}^{2}f{x}^{2}+2\,\sqrt{-4\,ac+{b}^{2}}xdeg+2\,xbdeg-4\,xcdef+\sqrt{-4\,ac+{b}^{2}}{d}^{2}g+b{d}^{2}g-2\,c{d}^{2}f \right ) \sqrt{ex+d}\sqrt{gx+f}\sqrt{c{x}^{2}+bx+a}}{ \left ( dg-ef \right ) \left ( e\sqrt{-4\,ac+{b}^{2}}+be-2\,cd \right ) \sqrt{ceg{x}^{4}+beg{x}^{3}+cdg{x}^{3}+cef{x}^{3}+aeg{x}^{2}+bdg{x}^{2}+bef{x}^{2}+cdf{x}^{2}+adgx+aefx+bdfx+adf}}{\it EllipticF} \left ( \sqrt{{\frac{ \left ( e\sqrt{-4\,ac+{b}^{2}}+be-2\,cd \right ) \left ( gx+f \right ) }{ \left ( g\sqrt{-4\,ac+{b}^{2}}+bg-2\,cf \right ) \left ( ex+d \right ) }}},\sqrt{{\frac{ \left ( 2\,cd-be+e\sqrt{-4\,ac+{b}^{2}} \right ) \left ( g\sqrt{-4\,ac+{b}^{2}}+bg-2\,cf \right ) }{ \left ( 2\,cf-bg+g\sqrt{-4\,ac+{b}^{2}} \right ) \left ( e\sqrt{-4\,ac+{b}^{2}}+be-2\,cd \right ) }}} \right ) \sqrt{{\frac{ \left ( dg-ef \right ) \left ( b+2\,cx+\sqrt{-4\,ac+{b}^{2}} \right ) }{ \left ( g\sqrt{-4\,ac+{b}^{2}}+bg-2\,cf \right ) \left ( ex+d \right ) }}}\sqrt{{\frac{ \left ( dg-ef \right ) \left ( -b-2\,cx+\sqrt{-4\,ac+{b}^{2}} \right ) }{ \left ( 2\,cf-bg+g\sqrt{-4\,ac+{b}^{2}} \right ) \left ( ex+d \right ) }}}\sqrt{{\frac{ \left ( e\sqrt{-4\,ac+{b}^{2}}+be-2\,cd \right ) \left ( gx+f \right ) }{ \left ( g\sqrt{-4\,ac+{b}^{2}}+bg-2\,cf \right ) \left ( ex+d \right ) }}}{\frac{1}{\sqrt{-{\frac{ \left ( gx+f \right ) \left ( ex+d \right ) \left ( -b-2\,cx+\sqrt{-4\,ac+{b}^{2}} \right ) \left ( b+2\,cx+\sqrt{-4\,ac+{b}^{2}} \right ) }{c}}}}}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{1}{\sqrt{c x^{2} + b x + a} \sqrt{e x + d} \sqrt{g x + f}}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F] time = 0., size = 0, normalized size = 0. \begin{align*}{\rm integral}\left (\frac{\sqrt{c x^{2} + b x + a} \sqrt{e x + d} \sqrt{g x + f}}{c e g x^{4} +{\left (c e f +{\left (c d + b e\right )} g\right )} x^{3} + a d f +{\left ({\left (c d + b e\right )} f +{\left (b d + a e\right )} g\right )} x^{2} +{\left (a d g +{\left (b d + a e\right )} f\right )} x}, x\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{1}{\sqrt{d + e x} \sqrt{f + g x} \sqrt{a + b x + c x^{2}}}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{1}{\sqrt{c x^{2} + b x + a} \sqrt{e x + d} \sqrt{g x + f}}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]